package matlap.client.services.article;

import java.util.List;

import matlap.shared.Article;
import matlap.shared.Author;
import matlap.shared.Topic;

import com.google.gwt.user.client.rpc.AsyncCallback;

public interface ArticleServiceAsync {

	void selectAuthorName(AsyncCallback<List<Author>> asyncCallback);

	void selectTopicsName(AsyncCallback<List<Topic>> callback);

	void selectArticle(String articleName, String topicName, String authorName,
			AsyncCallback<List<Article>> callback);

	void insertArticle(String address, String authorName, String topicsName,
			String fileName, String path, AsyncCallback<Boolean> callback);

	void insertAuthor(String authorName, String localityName,
			AsyncCallback<Void> callback);

	void insertTopic(String name, AsyncCallback<Void> callback);

	void getArticlesNumber(AsyncCallback<Integer> asyncCallback);
}
